<div ng-include="sys_html('common/_header')"></div>
<style>
	.fui-page{background:#f2f2f2}
    .fui-cell-group{width:100%;border-radius: 0.5rem;}
    .fullback-title{color:#999999;font-size:0.7rem;padding:0.75rem 0 0.5rem 0;}
    .fullback-info{}
    .fullback-info p{height:1rem;line-height: 1rem;font-size:0.625rem;color:#333;display: inline-block;padding:0 0.5rem 0 0;}
    .fullback-info p i{border:none;height:0.75rem;width:0.75rem;display: inline-block;background: #ff4753;color:#fff;font-size:0.4rem;line-height: 0.8rem;text-align: center;
        font-style: normal;border-radius: 0.75rem;-webkit-border-radius: 0.75rem;margin-right:0.25rem;}
    .fullback-remark{line-height: 1rem;font-size:0.6rem;color:#666;padding:0.2rem 0;}
	.fui-tab:after {
		height: 0;
	}
.right-living {height:1.2rem;line-height:1.15rem}
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fui-navbar .buybtn  {padding-left:0.3rem;background:#fff}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:1.95rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.68;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
.arrow-top {
  width: 0;   
  height: 0;   
  border-left: 10px solid transparent; 
  border-right: 10px solid transparent;
  border-bottom: 10px solid #f1e8d6; 
  font-size: 0;  
  line-height: 0;
  margin-left:1.3rem
}
.coutag {padding:0.1rem 0.2rem;background:#ffedef;color:#db2e2a;font-size:0.55rem;border-radius: 0.2rem;}
</style>
<div id="jyindex" class='fui-page fui-page-current  page-goods-detail' id='page-goods-detail-index'>
<div ng-include="sys_html('goods/_detail01')"></div>
<!-- 商品其他开始 -->
<div ng-if="pagedata.showpingjia!=1" ng-class="{'fui-content basic-block pulldown':1, 'notbuy':pagedata.goods.canbuy}" style="top: 0.0rem;">
<div ng-include="sys_html('goods/_detail02')"></div>
<div ng-if="pagedata.goods" class="fui-cell-group fui-detail-group" style="padding-bottom:8px;border-top-left-radius:0;border-top-right-radius:0">
<!--秒杀完成-->
<div ng-if="pagedata.goods.active.rest_time" ng-class="{'seckill-container':1,'notstart':pagedata.goods.active.status==0}">
    <div class="fui-list seckill-list" style="" >
        <div class="fui-list-media seckill-price">
            &yen;<span>{{pagedata.goods.active.price || pagedata.goods.price}}</span>
        </div>
        <div class="fui-list-inner">
                <div ng-if="pagedata.goods.active.tag" class="text">
                    <span class="stitle" style="white-space:nowrap; overflow:hidden; max-width:2.6rem;">{{pagedata.goods.active.tag}}</span>
                </div>
            <div class="text" ng-if="pagedata.goods.api_data.no_oldprice!=1"><span ng-class="{'oldprice':pagedata.goods.api_data.no_oldpriceline!=1}">{{pagedata.goods.api_data.oldpricetitle || ''}}&yen;{{pagedata.goods.originalprice}}</span></div>
        </div>
    </div>
    <div class="fui-list seckill-list1" ng-if="pagedata.goods.active.nopercent!=1">
        <div class="fui-list-inner">
            <div class="text " ng-if="pagedata.goods.active.status==1">已出售 {{pagedata.goods.active.percent || 0}}%</div>
            <div class="text " ng-if="pagedata.goods.active.status==1"><span class="process"><div class="inner" style="width:{{pagedata.goods.active.percent || 0}}%"></div></span></div>
        </div>
    </div>
    <div class="fui-list seckill-list2">
        <div class="fui-list-inner">
            <div ng-if="pagedata.goods.active.status!=1" class="text ">距开始还有</div>
			<div ng-if="pagedata.goods.active.status==1" class="text ">距结束还有</div>
            <div class="text timer" ng-init="tool.time_down(pagedata.goods.active.rest_time)">
                <span class="time-day" style="width:auto;padding-right:0.1rem">{{pagedata.goods.active.rest_time.day}}天</span>&nbsp;<span class="time-hour">{{pagedata.goods.active.rest_time.hour}}</span>&nbsp;<span class="time-min">{{pagedata.goods.active.rest_time.minute}}</span>&nbsp;<span class="time-sec">{{pagedata.goods.active.rest_time.second}}</span>
            </div>
        </div>
    </div>
</div>
 <!--正常价格-->
    <div class="fui-cell" style='padding-bottom:0;padding-top:0.4rem'>
        <div class="fui-cell-text">
			<div class="text">
				<span ng-if="pagedata.goods.active.title" class="red">{{pagedata.goods.active.title}}</span>
				<span ng-if="!pagedata.goods.active.title && pagedata.setting.price_title" class="red">{{pagedata.setting.price_title}}</span>
				<span ng-if="pagedata.goods.active.price && !pagedata.goods.active.rest_time" class="price" style="font-size:1rem;line-height:1.4rem"> ￥<span class="title15">{{pagedata.goods.active.price ||'0.00'}}</span></span>
				<span ng-if="!pagedata.goods.active.price && pagedata.shopset.vip_price!=1" class="price" style="font-size:1rem;line-height:1.4rem">
				￥<span class="title15">{{pagedata.goods.price ||'0.00'}}</span>
				</span>
				<span ng-if="pagedata.goods.originalprice && pagedata.shopset.vip_price!=1 && !pagedata.goods.active.rest_time && pagedata.goods.api_data.no_oldprice!=1" ng-class="{'oldprice':pagedata.goods.api_data.no_oldpriceline!=1}" style="margin-left:0.3rem">{{pagedata.goods.api_data.oldpricetitle||''}} ￥{{pagedata.goods.originalprice}}</span>
				<span ng-if="!pagedata.goods.active.price && pagedata.shopset.vip_price==1" class="price" style="font-size:1rem;line-height:1.4rem">
				<span ng-if="pagedata.member.level>0 || pagedata.shopset.vip_demoprice!=1" class="title15"><span style="font-size:0.5rem">￥</span>{{pagedata.goods.oldprice ||''}}</span>
				<span ng-if="pagedata.member.level>0 || pagedata.shopset.vip_demoprice!=1" style="font-size:0.65rem"><span style="font-size:0.5rem">会员价￥</span>{{pagedata.member.memberprice||pagedata.goods.price}}</span>
				<span ng-if="pagedata.member.level==0 && pagedata.shopset.vip_demoprice>0" class="title15"><span style="font-size:0.5rem">￥</span>{{pagedata.goods.price}}</span>
				</span>
			</div>
			<div class="subtitle">
				<span ng-if="pagedata.goods.isshowsales!=1" class="subtitle">(已售{{pagedata.goods.salenum}}{{pagedata.goods.unit || '件'}})</span>
				<span ng-if="pagedata.goods.active.sendday" class='subtitle'>发货时间：<span class="red">{{pagedata.goods.active.sendday}}</span> 天后</span>
			</div>
		</div>
		<div class="fui-cell-remark lover" style="padding-left:0;margin-top:0.1rem">
			<div class="fui-icon">
				<div ng-if="pagedata.goods.isbuyxiu==1" class="fui-tag" style="padding:0">
					<i href="javascript:;" ng-click="access_json('jy_weishop/sale.buyxiu//goodsid='+pagedata.goods.id)" class="icon icon-nvzhuangneiyi" style="font-size:0.7rem"></i>
					<div class="subtitle">买家秀</div>
				</div>
				<div class="fui-tag" style="padding:0.2rem" >
					<i href="javascript:;" ng-click="pagedata.setlike();toogle(pagedata,'islike')" ng-class="{'icon jinyunicon':1,'icon-follow':pagedata.islike !=1,'icon-xiai':pagedata.islike >0}" style="font-size:0.7rem"></i>
					<div class="subtitle">关注</div>
				</div>
			</div>
		</div>
		<div ng-if="pagedata.goods.commission_money" class="fui-cell-remark lover" style="padding-left:0;margin-top:0.1rem;margin-right:0">
			<div class="fui-tag fui-tag-danger fee-tag" style="padding:0.3rem 0.2rem">
					<div style="font-size:0.6rem">￥{{pagedata.goods.commission_money}}</div>
					<div style="font-size:0.6rem;padding-top:0.3rem">{{pagedata.goods.commission_title}}</div>
			</div>
		</div>
    </div>
	<div ng-if="pagedata.nextlevel && pagedata.nextlevel.id>0" style="margin:0 0.5rem;">
			<div class="arrow-top"></div>
			<div ng-click="access_json('jy_weishop/member.open//id='+pagedata.nextlevel.id);" class="memlogo-area" style="margin-bottom:0;height:3rem;padding:0.5rem;background:url({{tomedia(pagedata.nextlevel.cardbg) || '../core/resource/images/cardbg.png'}}) no-repeat 100%">
					<div class="name bold">{{pagedata.nextlevel.title || 'VIP卡'}}价:￥{{pagedata.goods.vipprice || pagedata.goods.price}}</div>
					<br>
					<div class="name overflow-h" style="max-width: 8rem;background:#333;border-radius:0.2rem;font-size:0.5rem;padding:0 3px">{{pagedata.nextlevel.desc || '预计年均省685元'}}</div>
					<div class="code">
							<img ng-src="{{tomedia(pagedata.nextlevel.vipimgs) || '../addons/jy_weishop/resource/images/vipimgs.png'}}">
					</div>
			</div>
	</div>
	<div ng-if="pagedata.goods.active && pagedata.goods.active.libaos.length>0" class="fui-cell" style="padding: 0.3rem 0.5rem;">
        <div class="fui-cell-text">
			 <span style="color:#999">内含：<span class="red">{{pagedata.goods.active.libaos.length}}</span> 个礼品，可随意选择其中<span class="red">{{pagedata.goods.active.choosenum || 1}}</span>个</span>
        </div>
		<div class="fui-cell-remark">
			<span style="color:red" ng-click="pagedata.showlibaos=true;pagedata.nowlibao=pagedata.goods.active">查看礼包</span>
		</div>
    </div>
    <div class="fui-cell">
		<div class="fui-cell-tag">
			<i class="fui-tag fui-tag-red">{{pagedata.goods.merchid!=0 ? '商户':'自营'}}</i>
		</div>
        <div class="fui-cell-text name bold" style="font-size:0.8rem">
			 {{pagedata.goods.title}}
        </div>
    </div>
	<div class="fui-cell goods-subtitle" style="margin-top:-.2rem">
		<span class='text-block'>{{pagedata.goods.subtitle}}</span>
	</div>
	<div class="fui-cell" ng-if="pagedata.goods.pcd.province">
			<div class="fui-cell-text name">
				<span class="fui-tag subtitle" style="font-size:0.6rem"><i class="icon jinyunicon icon-map" style="font-size:0.55rem;"></i> 仓库</span>
                <span class="coupon-mini subtitle" style="font-size:0.6rem">{{pagedata.goods.pcd.province}}&nbsp{{pagedata.goods.pcd.city}}&nbsp{{pagedata.goods.pcd.district}}&nbsp{{pagedata.goods.pcd.street}} </span>
            </div>
			<div class="fui-cell-remark noremark"></div>
     </div>
	<!-- 平台开卡优惠券 -->
    <div class="fui-cell" ng-if="pagedata.shopset.giftcards_on ==1">
			<div class="fui-cell-text name" ng-click="access_json('jy_weishop/member.getcard/')">
				<span class="fui-tag fui-tag-red-o"><i class="icon jinyunicon icon-bussinesscard" style="font-size:0.4rem;"></i><span style="margin-left:3px">{{pagedata.shopset.giftcards_title ||'免费领'}}</span></span>
                <span class="coupon-mini">{{pagedata.shopset.giftcards_desc || '平台超级卡开卡送120,存100得200。戳'}} <i class="icon jinyunicon icon-yuding" style="font-size:0.5rem;color:red"></i></span>
            </div>
     </div>
	<div ng-if="pagedata.goods.province && pagedata.goods.city" class="fui-cell">
		<div class="fui-cell-text flex">
			<!--<span ng-if="pagedata.goods.dispatchprice.min && pagedata.goods.type !=1 && pagedata.goods.isverify!=2">{{pagedata.goods.ispeisong?'配送费':'快递费'}}：{{pagedata.goods.dispatchprice.min}} ~ {{pagedata.goods.dispatchprice.max}}</span>
			<span ng-if="!pagedata.goods.dispatchprice.min && pagedata.goods.dispatchprice && pagedata.goods.type !=1 && pagedata.goods.isverify!=2">{{pagedata.goods.ispeisong?'配送费':'快递费'}}：{{pagedata.goods.dispatchprice ? '￥'+ pagedata.goods.dispatchprice + '.00' : '包邮'}}</span>-->
			<span ng-if="pagedata.goods.province != '请选择省份' && pagedata.goods.city != '请选择城市'">{{pagedata.goods.province}} {{pagedata.goods.city}}</span>
		</div>
	</div>
	<div ng-if="pagedata.goods.store_isopen==1 && pagedata.stores.length>0 && pagedata.shopset.no_goodsstore==1" class="fui-cellone" style="padding:0.3rem 0.6rem;">
			<div class="fui-cellone-icon" style="margin-right:0.3rem">
				<i class="icon icon-map" style="font-size:0.6rem"></i>
			</div>
			<div class="fui-cellone-info">
					<div>
							<span class="red">门店:</span>
							<span>{{pagedata.selectstore.title}}</span>
							<span style="color:{{main.syscolor || 'red'}}">{{pagedata.selectstore.pcd.city}}</span>
					</div>
					<i ng-if="!pagedata.goods.canbuy" class="coutag icon icon-xinxi"> 该商品没库存？切换门店试试!</i>
			</div>
			<div class="fui-cellone-remark" style="margin-right:0" href="javascript:;" ng-click="pagedata.showstores=true">
					切换门店
			</div>
	</div>
</div>

<!-- 所有营销 -->
<div class="fui-cell-group fui-sale-group">
	<!-- 商品可用优惠券 -->
	<div class="fui-cell" ng-if="pagedata.sale==1 && pagedata.coupons.lenght >0" ng-include="sys_html('goods/common/_coupons')"></div>
    <!-- 会员等级 -->
    <div ng-if="pagedata.member.levelname && pagedata.member.isdiscount == 1 && pagedata.member.memberprice != pagedata.goods.price" ng-include="sys_html('goods/common/_memberdiscount')"></div>
    <div ng-if="pagedata.sale==1 && pagedata.huodong == 1" class="fui-cell fui-sale-cell" ng-include="sys_html('goods/common/_sales')"></div>
	<!--已选参数-->
    <div ng-if="pagedata.selespename" class="fui-cell">
		<div class="fui-cell-label bold" style="width:2rem">已选</div>
        <div class="fui-cell-text" style="color:#333">
            {{pagedata.selespename}}{{pagedata.post.num}}{{pagedata.goods.unit || '件'}}<span class="subtitle" style="margin-left:0.3rem" ng-if="pagedata.goods.isshowtotal=='1'">(库存{{pagedata.options.stock}}{{pagedata.goods.unit || '件'}})</span>
        </div>
		<div class="fui-cell-remark noremark" ng-click="pagedata.isnewtpl=1;pagedata.isfromcart=1;pagedata.showpicker=true;"><i class="icon jinyunicon icon-icon-test"></i></div>
    </div>
	<div ng-if="!pagedata.selespename" class="fui-cell">
		<div class="fui-cell-label bold" style="width:2rem">已选</div>
        <div class="fui-cell-text" style="color:#333">
            {{pagedata.post.num}}{{pagedata.goods.unit || '件'}}<span class="subtitle" style="margin-left:0.3rem" ng-if="pagedata.goods.isshowtotal=='1'">(库存{{pagedata.goods.total}}{{pagedata.goods.unit || '件'}})</span>
        </div>
		<div class="fui-cell-remark noremark">
			<div class="fui-cell noborder" style="padding:0">
				<div class="fui-cell-label">数量</div>
				<div class="fui-cell-info"></div>
				<div class="fui-cell-mask noremark">
					 <div class="fui-number">
						<div class="minus" ng-click="pagedata.minus()">-</div>
						<input class="num" type="number" name="" ng-model="pagedata.post.num"/>
						<div class="plus" ng-click="pagedata.plus()">+</div>
					</div>
				</div>
			</div>
		</div>
    </div>
	<!--赠品-->
    <div ng-if="pagedata.gifts.length >0" class="fui-cell fui-sale-cell sendgoods" ng-click="access_json('jy_weishop/goods.gift//id='+pagedata.goods.gift_id)">
        <div class="fui-cell-label bold" style="width:2rem">赠品</div>
            <div ng-if="pagedata.gifts.length>1" class="fui-cell-text fui-cell-giftclick">
                <label id="gifttitle">请选择赠品</label>
                <input type="hidden" name="giftid" id="giftid" value="">
            </div>
            <div ng-if="pagedata.gifts.length<2" ng-repeat="gi in pagedata.gifts" class='fui-cell-text'>
                    {{gi.title}} <span class="subtitle">&yen;<del>{{gi.price}}</del></span>
            </div>
        <div class="fui-cell-remark noremark"><i class="icon jinyunicon icon-icon-test"></i></div>
    </div>
	<!--服务完成-->
	<div ng-if="pagedata.goods.type==0 && pagedata.shopset.no_goodssongda!=1" class="fui-cell">
		<div class="fui-cell-label bold" style="width:2rem">送至</div>
        <div class="fui-cell-text overflow-h2" style="color:#333;margin-top:0.5rem">
            <span style="width:100%" ng-if="pagedata.post.addressid">{{pagedata.address.pcd.province}}{{pagedata.address.pcd.city}}{{pagedata.address.pcd.district}}{{pagedata.address.address || '(没有详细地址信息)'}} </span>
			<span style="width:100%" ng-if="!pagedata.post.addressid">您还没有设置默认收货地址！</span><br>
			<span class="red">现货</span>，23:00前下单,预计({{pagedata.deliverytime}})送达
        </div>
		<div class="fui-cell-remark noremark" onclick="$('#modal_address').modal();"><i class="icon jinyunicon icon-icon-test"></i></div>
    </div>
	<div ng-if="pagedata.goods.weight && (pagedata.goods.weight!='0.00' || pagedata.goods.weight>0)" class="fui-cell">
		<div class="fui-cell-label bold" style="width:2rem">重量</div>
        <div class="fui-cell-text" style="color:#333">
            {{pagedata.goods.weight}}g
        </div>
    </div>
	<!--配送区域完成-->
    <div ng-if="pagedata.has_city==1" class='fui-cell'>
        <div ng-if="pagedata.dispatch.isdispatcharea==0" class='fui-cell-label bold' style="width:auto">不配送区域:</div>
		<div ng-if="pagedata.dispatch.isdispatcharea!=0" class='fui-cell-label bold' style="width:auto">只配送区域:</div>
		<div class="fui-cell-text dispatching">
			<div class="dispatching-info" style="margin-top:0">
                    <span ng-repeat="(ke,v) in pagedata.citys" class="fui-tag fui-tag-red-o sale-tip">{{ke}}</span>
             </div>
		 </div>
        <div class='fui-cell-remark noremark' onclick="$('#showhas_city').modal();"><i class="icon jinyunicon icon-icon-test"></i></div>
    </div>
</div>
<!--数量规格-->
 <!--   <div ng-if="pagedata.goods.canbuy && pagedata.goods.type!=4" class="fui-cell-group fui-cell-click">
        <div class="fui-cell">
            <div ng-if="empty(pagedata.spec_titles)" class="fui-cell-text option-selector">请选择数量</div>
            <div ng-if="!empty(pagedata.spec_titles)" class="fui-cell-text option-selector" href="javascript:" ng-click="pagedata.post.id=item.id" onclick="$('#spec').modal();" >请选择数量</div>
			<div ng-if="!empty(pagedata.spec_titles)" class="fui-cell-text option-selector" href="javascript:" ng-click="pagedata.post.id=item.id" onclick="$('#spec').modal();" >请选择{{pagedata.spec_titles}}等</div>
            <div class="fui-cell-remark"></div>
        </div>
    </div>-->
<div ng-if="pagedata.packages && pagedata.goods.total>0" ng-include="sys_html('goods/common/_packages')"></div>
<div id="jypingjia" ng-include="sys_html('goods/common/_commentsdetail')"></div>
<div ng-if="pagedata.goods.merchid==0 && pagedata.stores.length >0 && pagedata.shopset.no_goodsstore!=1" class='fui-according-group' style="border-radius: 0.5rem;" ng-include="sys_html('goods/common/_stores')"></div>
<!--店铺信息-->
<div ng-if="pagedata.shopset.no_goodsshop!=1" ng-include="sys_html('goods/common/_myshop')"></div>
<div class="fui-cell-group" style="margin-top: 0;" ng-if="pagedata.goods.cash==2 || pagedata.goods.quality==1 || pagedata.goods.repair==1 || pagedata.goods.invoice ==1 || pagedata.goods.seven ==1 || pagedata.goods.labelname.length>0">
<div class="fui-cell goods-label-list goods-label-style{{pagedata.goods.style.length + 1}}">
            <span ng-if="pagedata.goods.cash==2" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>货到付款</strong></span>
            <span ng-if="pagedata.goods.quality==1" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>正品保证</strong></span>
            <span ng-if="pagedata.goods.repair==1" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>保修</strong></span>
            <span ng-if="pagedata.goods.invoice ==1" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>发票</strong></span>
            <span ng-if="pagedata.goods.seven ==1" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>{{pagedata.shopset.seventitle||'7天退换'}}</strong></span>
            <span ng-repeat="value in pagedata.goods.labelname track by $index" ng-class="{'cl-3 cl-4 cl-2':pagedata.goods.style.length<2}"><i class="icon jinyunicon icon-yuding red"></i><strong>{{value.title}}</strong></span>
</div>
</div>
<!--商品详情开始-->
<div class="detail-block" style="position: relative;margin-top:0.5rem;border-radius: 0.5rem;width:100%;background:#fff;padding-bottom:0">
		<div id="jycontent" class="fui-cell-text bold" style="padding:0.5rem">商品详情</div>
		<!--购买后显示-->
		<div ng-if="pagedata.goods.isbuynum>0 && pagedata.goods.buyshow==1 && pagedata.goods.buycontent" style="padding:0.4rem 0.5rem;padding-top:0">
			<div class="content-block content-images" ng-bind-html="trust(pagedata.goods.buycontent)"></div>
		</div>
		<div ng-if="pagedata.goods.param.length>0" style="padding:0.4rem 0.5rem;padding-top:0">
			 <div class="fui-cell-group notop" style="background:#f2f2f2;margin-bottom:0.4rem">
				<div ng-repeat="p in pagedata.goods.param" class="fui-cell" style="padding:0.5rem">
					<div class="fui-cell-label md" style="color:#666">{{p.title}}</div>
					<div class="fui-cell-info  md" style="color:#333">{{p.value}}</div>
				</div>
			</div>
		</div>
        <div ng-if="pagedata.showcontent==1 || pagedata.showtype>=1" class="content-block content-images" ng-bind-html="trust(pagedata.goods.content)"></div>
		<div class="content-block content-images" ng-bind-html="trust(pagedata.goods.footerinfo)"></div>
</div>
<div id="jytuijie">
<div ng-if="pagedata.setting.no_itemhot!=1 && (pagedata.showcontent==1 || pagedata.showtype>=2)" class="fui-cell-group" ng-include="sys_html('goods/common/_hotgoods')"></div>
</div>
<div class='content-bttom' style="height:2.5rem">
</div>
</div>
<!-- 下面是弹窗系列 -->
<!--赠品弹层-->
<div ng-if="pagedata.isgift==1 && pagedata.goods.total>0" id='gift-picker-modal' style="margin:-100%;" ng-include="sys_html('goods/common/_giftmodal')"></div>
<!--配送区域弹层-->
<div id="showhas_city" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;bottom:0">
<div class="modal-bottom">
    <div class='city-picker'>
        <div ng-if="pagedata.dispatch.isdispatcharea==0" class='fui-cell-title text-center' style="background: white;">不配送区域</div>
        <div ng-if="pagedata.dispatch.isdispatcharea==1" class='fui-cell-title text-center' style="background: white;">只配送区域</div>
        <div class="fui-cell-group fui-sale-group" style="margin-top:0; overflow-y: auto;padding:0.5rem">
            <span ng-repeat="(ke,v) in pagedata.citys" class="fui-tag fui-tag-red-o sale-tip" style="margin:0.2rem">{{ke}}</span>
        </div>
    </div>
	<div class="fui-navbar" style="padding:0.35rem 1rem">
			<a href="javascript:;" aria-hidden="true" data-dismiss="modal" class="nav-item btn btn-danger confirmbtn">确定</a>
	</div>
</div>
</div>
</div>
<!-- 促销活动层 -->
<div id="showhuodong" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;bottom:0">
<div class="modal-bottom">
    <div class='picker-sales page-goods-detail'>
        <div class='fui-cell-title text-center' style="background: white;">活&nbsp;动</div>
        <div class="fui-cell-group fui-sale-group noborder" style="margin-top:0; overflow-y: auto;">
            <!-- 商城满减 -->
				<div ng-if="pagedata.saleset.enough.length>0">
                <div  class="fui-cell fui-sale-cell">
                    <div class="fui-cell-label" style="width:2rem">
                        <span class="fui-tag-red-big-o sale-tip">满减</span>
                    </div>
                    <div class="fui-cell-text" style="white-space: inherit;">
                        <div ng-repeat="(key,enough) in pagedata.saleset.enough">全场 满<span class="text-danger">&yen;{{enough.man}}</span>立减<span class="text-danger">&yen;{{enough.jian}}</span></div>
                    
                    </div>
                </div>
                </div>

            <!-- 商户满减 -->
          
            <div ng-if="pagedata.saleset.enoughdeduct && !pagedata.seckillinfo" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">满减</span>
                </div>
                <div class="fui-cell-text" style="white-space: inherit;">
                  
                    <div ng-repeat="(key,enough) in pagedata.saleset.enoughs">商户 满<span class="text-danger">&yen;{{enough.enough}}</span>立减<span class="text-danger">&yen;{{enough.give}}</span></div>
                  
                </div>
            </div>
           

            <!-- 包邮 -->
			 <div ng-if="pagedata.manjian" class="fui-cell fui-sale-cell">
                    <div class="fui-cell-label" style="width:2rem">
                        <span class="fui-tag-red-big-o sale-tip">包邮</span>
                    </div>
                    <div class="fui-cell-text">
							<div ng-if="pagedata.saleset.baoyou_status ==1">全场满 <span class="text-danger">&yen;{{pagedata.saleset.baoyou_man}}</span> 包邮;</div>
							<div ng-if="pagedata.goods.fullnum>0">单品满 <span class="text-danger">{{pagedata.goods.fullnum}}</span> {{pagedata.goods.unit || '件'}}包邮; </div>
							<div ng-if="pagedata.goods.fullmoney>0">单品满 <span class="text-danger">&yen;{{pagedata.goods.fullmoney}}</span> 包邮; </div>
                        
                    </div>
                </div>	
            <!-- 积分 -->
            <!-- 抵扣 -->
            <div ng-if="pagedata.goods.deduct_credit>0" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">积分抵扣</span>
                </div>
                <div class="fui-cell-text">
                    <div ng-if="pagedata.goods.deduct_credit>0">最高抵扣<span class="text-danger">&yen;{{pagedata.goods.deduct_credit}}</span></div>
                </div>
            </div>
			<!-- 积分 -->
			 <div ng-if="pagedata.goods.credit>0" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">积分</span>
                </div>
                <div class="fui-cell-text">
                    <div>购买赠送<span class="text-danger">{{pagedata.goods.credit}}</span>积分</div>
                </div>
            </div>
			<!-- 虚拟币 -->
            <div ng-repeat="cv in pagedata.goods.credit3" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">{{cv.title}}</span>
                </div>
                <div class="fui-cell-text">
                    购买送 <span class="text-danger">{{cv.credit}}</span>个 {{cv.title}}
                </div>
            </div>
			<!-- 返现 -->
            <div ng-if="pagedata.goods.fang_credit2>0" class="sale-line">
                <span class="fui-tag fui-tag-red-o sale-tip">返现</span>
				  <span class="tag-text">
						购买返现 <span class="text-danger">￥{{pagedata.goods.fang_credit2}}</span> 余额
                </span>
            </div>
            <!-- 二次购买 -->
            
            <div ng-if="pagedata.goods.buyagain>0" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">复购</span>
                </div>
                <div class="fui-cell-text">
                    此商品重复购买可享受<span class="text-danger">{{pagedata.goods.buyagain}}</span>折优惠
					<span ng-if="!pagedata.goods.buyagain_sale"> 
					重复购买 不与其他优惠共享
					</span>
                </div>
            </div> 
            <div ng-if="pagedata.isfullback" class="fui-cell fui-sale-cell">
                <div class="fui-cell-label" style="width:2rem">
                    <span class="fui-tag-red-big-o sale-tip">全返</span>
                </div>
                <div class="fui-cell-text" style="white-space: inherit;">
                    <div class="fullback-info">
                    <p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption > 0 && pagedata.fullbackgoods.minallfullbackallratio == pagedata.fullbackgoods.maxallfullbackallratio" style="display: block;"><i>&yen;</i>全返总额：&yen; {{pagedata.fullbackgoods.minallfullbackallratio}}%
                    <p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption > 0 && pagedata.fullbackgoods.minallfullbackallratio != pagedata.fullbackgoods.maxallfullbackallratio" style="display: block;"><i>&yen;</i>全返总额：&yen; {{pagedata.fullbackgoods.minallfullbackallratio}}% ~ {{pagedata.fullbackgoods.maxallfullbackallratio}}%
                    <p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption <= 0 " style="display: block;"><i>&yen;</i>全返总额： &yen;{{pagedata.fullbackgoods.minallfullbackallratio}}%
                    <p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption > 0 && pagedata.fullbackgoods.minallfullbackallprice != pagedata.fullbackgoods.maxallfullbackallprice " style="display: block;"><i>&yen;</i>全返总额： &yen;{{pagedata.fullbackgoods.minallfullbackallprice}}
                    <p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption > 0 && pagedata.fullbackgoods.minallfullbackallprice == pagedata.fullbackgoods.maxallfullbackallprice " style="display: block;"><i>&yen;</i>全返总额： &yen;{{pagedata.fullbackgoods.minallfullbackallprice}} ~ &yen;{{pagedata.fullbackgoods.maxallfullbackallprice}}
                    <p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption <= 0 " style="display: block;"><i>&yen;</i>全返总额： &yen;{{pagedata.fullbackgoods.minallfullbackallprice}}
                    </p>
					<p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minfullbackratio == pagedata.fullbackgoods.maxfullbackratio" style="display: block;"><i>&yen;</i>每天返:{{pagedata.fullbackgoods.minallfullbackallratio}}%</p>
					<p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minfullbackratio != pagedata.fullbackgoods.maxfullbackratio" style="display: block;"><i>&yen;</i>{{pagedata.fullbackgoods.minallfullbackallratio}}% ~ {{pagedata.fullbackgoods.maxallfullbackallratio}}%</p>
					<p ng-if="pagedata.fullbackgoods.type>0 && pagedata.goods.hasoption<=0" style="display: block;"><i>&yen;</i>每天返:{{pagedata.fullbackgoods.fullbackratio}}%</p>
					<p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minfullbackprice == pagedata.fullbackgoods.maxfullbackprice" style="display: block;"><i>&yen;</i>每天返:&yen;{{pagedata.fullbackgoods.minallfullbackallprice}}</p>
					<p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minfullbackprice != pagedata.fullbackgoods.maxfullbackprice" style="display: block;"><i>&yen;</i>每天返:&yen;{{pagedata.fullbackgoods.minallfullbackallprice}} ~ &yen;{{pagedata.fullbackgoods.maxfullbackprice}}</p>
					<p ng-if="pagedata.fullbackgoods.type<=0 && pagedata.goods.hasoption<=0" style="display: block;"><i>&yen;</i>每天返:&yen;{{pagedata.fullbackgoods.fullbackratio}}</p>
                    <p ng-if="pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minday == pagedata.fullbackgoods.maxday" style="display: block;"><i>&yen;</i>时间：{{pagedata.fullbackgoods.minday}}</p>
                    <p ng-if="pagedata.goods.hasoption>0 && pagedata.fullbackgoods.minday != pagedata.fullbackgoods.maxday" style="display: block;"><i>&yen;</i>时间：{{pagedata.fullbackgoods.minday}} ~ {{pagedata.fullbackgoods.maxday}}</p>
                    <p ng-if="pagedata.goods.hasoption<=0" style="display: block;"><i>&yen;</i>时间：{{pagedata.fullbackgoods.day}}</p>
                    </div>
                  
                    <div ng-if="pagedata.fullbackgoods.startday>0" class="fullback-remark" style="line-height: inherit;">
                        确认收货{{pagedata.fullbackgoods.startday}}天后开始全返。如申请退款，则全返金额退还。
                    </div>
                   
                </div>
            </div>
            
        </div>
		<div class="fui-navbar"  style="padding:0.35rem 1rem">
				<a href="javascript:;" aria-hidden="true" data-dismiss="modal" class="nav-item btn btn-danger confirmbtn">确定</a>
		</div>
    </div>
</div>
</div>
</div>
<div ng-if="pagedata.goods.type ==4" ng-include="sys_html('goods/wholesalePicker')"></div>
<div class='fui-content' ng-if="!pagedata.goods">
    <div class='content-empty'>
        <i class='icon icon-searchlist'></i><br/> 商品已经下架，或者已经删除!<br/><a href="{php echo mobileUrl()}" class='btn btn-default-o external'>到处逛逛</a>
    </div>
</div>
<!--分享弹层-->
<div id="showsharecover" class="modal fade" tabindex="-1" style="z-index:99999;display:none;">
<div class="modal-dialog" style="width:100%;left:0;top:0">
	<div id="cover">
		<div class='fui-mask-m visible'></div>
		<div class='arrow'></div>
		<div ng-if="!pagedata.goods.share_title" class='content'>请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买</div>
		<div ng-if="pagedata.goods.share_title" class='content'>请点击右上角<br/>通过【发送给朋友】<br/>邀请好友购买{{pagedata.goods.share_title}}</div>
	</div>
</div>
</div>
<!--优惠券弹层完成-->
<div ng-include="sys_html('coupon/common/_couponpicker')"></div>
</div>
<!--底部按钮-->
<div class="fui-navbar-tip" ng-if="pagedata.shopset.open_tips==1"><i class="icon icon-information" style="font-size:0.6rem;color:red"></i> {{pagedata.shopset.tips}}</div>
<div class="fui-navbar bottom-buttons">
	<a ng-if="pagedata.shopset.nokefu2!=1" class="nav-item favorite-item active" ng-click="pagedata.itemtokefu();">
        <span class="icon jinyunicon icon-xiaoxi1" style="color:{{main.syscolor||'red'}};"></span>
        <span class="label" >客服</span>
    </a>
	<a ng-if="pagedata.goods.myshopmid>0 && pagedata.goods.merchid ==0" class="nav-item external" href="javascript:" ng-click="access_json('jy_commission/myshop//mid='+pagedata.goods.myshopmid)">
        <span class="icon jinyunicon icon-dianpu"></span>
        <span class="label" >小店</span>
    </a>
	<a ng-if="pagedata.goods.merchid>0" class="nav-item external" href="javascript:" ng-click="access_json('jy_merch/myshop//id='+pagedata.goods.merchid)">
        <span class="icon jinyunicon icon-dianpu"></span>
        <span class="label" >小店</span>
    </a>
	<a ng-if="pagedata.goods.merchid==0 && pagedata.goods.myshopmid==0" class="nav-item external" href="javascript:" ng-click="access_json(main.menus[0].action || 'jy_weishop/index/')">
        <span class="icon jinyunicon icon-dianpu"></span>
        <span class="label" >首页</span>
    </a>
	<a ng-if="pagedata.saleset.qingdan_open==1" class="nav-item cart-item" href="javascript:" ng-click="pagedata.addqingdan();pagedata.isaddqingdan=pagedata.isaddqingdan!=1?1:0">
		<span ng-class="{'icon':1,'icon-follow':pagedata.isaddqingdan !=1,'icon-xiai':pagedata.isaddqingdan==1}"></span>
		<span class="label">{{pagedata.isaddqingdan==1?'已加入':'加入清单'}}</span>
    </a>
	<a ng-if="pagedata.saleset.qingdan_open!=1" class="nav-item cart-item" href="javascript:" ng-click="access_json('jy_weishop/member.cart/')" id="menucart">
        <span ng-if="pagedata.cartCount<=0" class='badge out'>{{pagedata.cartCount}}</span>
        <span ng-if="pagedata.cartCount>0" class='badge in'>{{pagedata.cartCount}}</span>
        <span class="icon icon-tianmaochaoshigouwuche"></span>
        <span class="label">购物车</span>
    </a>
	<a class="nav-item btn cartbtn" ng-if="pagedata.saleset.qingdan_open!=1 && !pagedata.selespename && (pagedata.canAddCart || pagedata.post.isdish) && pagedata.goods.canbuy" class="nav-item btn cartbtn"  href="javascript:" ng-click="pagedata.pickeraddtocart()">
		<div class="fee-tag-nav">
			{{pagedata.setting.cart_title || '加入购物车'}}
		</div>
	</a>
    <a class="nav-item btn cartbtn" ng-if="pagedata.saleset.qingdan_open!=1 && pagedata.selespename && (pagedata.canAddCart || pagedata.post.isdish) && pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.isnewtpl=1;pagedata.isfromcart=1;pagedata.showpicker=true;">
		<div class="fee-tag-nav">
			{{pagedata.setting.cart_title || '加入购物车'}}
		</div>
	</a>
	<a class="nav-item btn cartbtn seckill-notstart" ng-if="!pagedata.post.isdish && pagedata.seckillinfo &&  pagedata.seckillinfo.status==1 && pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.check_buy()">
		<div class="fee-tag-nav">
			原价购买
		</div>
	</a>
	<a class="nav-item btn buybtn" ng-if="!pagedata.post.isdish && !pagedata.selespename && (!pagedata.seckillinfo ||  pagedata.seckillinfo.status!=1) && pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.check_buy()">
		<div class="fee-tagup-nav">
			{{pagedata.setting.buy_title || '立刻购买'}}
		</div>
	</a>
	<a class="nav-item btn buybtn" ng-if="!pagedata.post.isdish && pagedata.selespename && (!pagedata.seckillinfo ||  pagedata.seckillinfo.status!=1) && pagedata.goods.canbuy" href="javascript:" ng-click="pagedata.isfromcart=0;pagedata.showpicker=true;">
		<div class="fee-tagup-nav">
			{{pagedata.setting.buy_title || '立刻购买'}}
		</div>
	</a>
	<a class="nav-item btn cartbtn disabled" ng-if="!pagedata.goods.canbuy"  href="javascript:">
		<div class="fee-disabled-nav">
			{{pagedata.goods.nobuytitle}}
		</div>
	</a>
</div>
<div ng-include="sys_html('goods/_detailend')"></div>